package com.coming.mySpring.org.service.impl;

import com.coming.mySpring.base.service.impl.BaseServiceImpl;
import com.coming.mySpring.org.domain.SystemDictionaryType;
import com.coming.mySpring.org.mapper.SystemDictionaryDetailMapper;
import com.coming.mySpring.org.mapper.SystemDictionaryTypeMapper;
import com.coming.mySpring.org.service.ISystemDictionaryDetailService;
import com.coming.mySpring.org.service.ISystemDictionaryTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional(readOnly = true,propagation = Propagation.SUPPORTS)
public class SystemDictionaryTypeServiceImpl extends BaseServiceImpl<SystemDictionaryType> implements ISystemDictionaryTypeService {
    @Autowired
    private SystemDictionaryTypeMapper systemDictionaryTypeMapper;

    /**
     * 根据id删除
     * @param id
     */
    @Transactional
    @Override
    public void delete(Long id) {
        systemDictionaryTypeMapper.delete(id);
    }
}
